<?php
namespace app\api\validate;
use think\Validate;
class Address extends Validate{
    protected $rule = [
        'phone'  =>  'require',
        'user_name' =>  'require',
        'province' => 'require',
        'city' => 'require',
        'district' => 'require',
        'address' => 'require',
    ];
    protected $message = [
        'phone.require'  =>  PHONE_CANNOT_EMPTY,
        'user_name.require' =>  RECEIVER_CONTNOT_EMPTY,
        'province.require' =>AREA_LESS_CANSHU,
        'city.require' =>AREA_LESS_CANSHU,
        'district.require' =>AREA_LESS_CANSHU,
        'address.require' =>RECEIVER_ADDRESS_CONNOT_EMPTY,
    ];
}